package main;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateTimeHelper {
    public static String getCurrentTimeISO() {
        Date date = new Date();
        SimpleDateFormat ft = new SimpleDateFormat("yyyyMMddTHHMMss+08");
        String time = ft.format(date);
        return time;
    }

    public static String getCurrentTimePretty() {
        Date date = new Date();
        SimpleDateFormat ft = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String time = ft.format(date);
        return time;
    }
}
